#{extends 'Users/frame.html' /}

#{set 'moreStyles'}
<link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/Users/common.scss'}" />
<link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/Users/edit.scss'}" />
<link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/navigationbar.scss'}" />
#{/set}
<script language="javascript">
$(function(){
	$("#mi_order").addClass("menu-select");
});
</script>
<div class="navigationBar">
	<table>
		<tr>
			<td><img src="@{'/public/images/navigationHouse.gif'}"></td>
			<td><strong>当前位置：</strong></td>
			<td>
				<a href="/">首页</a>
				>>
				<a href="/users">会员中心</a>
				>>
				<a href="/users/order">订单管理</a>
				>>
				<font class="current">汇款确认申请</font>
			</td>
		</tr>
	</table>
</div>
<script language="javascript">
function postData() {
	$('form').submit();
}
</script>
<div id="edit-comment">
	<table>
		#{form @orders.submitRemittanceConfirm(), name:'form1', id:'form1'}
		<tr class="tr_title">
			<td colspan="2">
				请在付款后及时填写汇款确认信息，以便我们及时查帐并处理您的订单。请据实填写以下表格。
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<span class="error">#{error 'errMsg.status' /}</span>
			</td>
		</tr>
		<tr>
			<td class="left" style="width:100px;">订单号：</td>
			<td class="right">
				<input type="hidden" name="remittanceConfirm.order.id" value="${remittanceConfirm.order.id}">
				<strong class="red">${remittanceConfirm.order.id}</strong>
			</td>
		</tr>
		<tr>
			<td class="left">付款金额：</td>
			<td class="right">
				<input type="text" name="remittanceConfirm.price" value="${remittanceConfirm.price}" />
				<font class="red">*</font>&nbsp;
				<span class="error">#{error 'remittanceConfirm.price' /}</span>
			</td>
		</tr>
		<tr>
			<td class="left"></td>
			<td class="right">
				<span class="tips">(填写实付金额，不包括汇款手续费。只能填写数字与小数点！)</span>
			</td>
		</tr>
		<tr>
			<td class="left">付款方式：</td>
			<td class="right">
				<label><input type="radio" name="remittanceConfirm.payType" value="online" #{if remittanceConfirm.payType=="online"}checked#{/if}/>在线支付</label>
				<label><input type="radio" name="remittanceConfirm.payType" value="bankTransfer" #{if remittanceConfirm.payType=="bankTransfer"}checked#{/if}/>银行转账</label>
			</td>
		</tr>
		<tr>
			<td class="left">银行名称：</td>
			<td class="right">
				<input type="text" name="remittanceConfirm.bankName" value="${remittanceConfirm.bankName}" />
				<font class="red">*</font>&nbsp;
				<span class="error">#{error 'remittanceConfirm.bankName' /}</span>
				<span class="tips2">(如：中国工商银行武汉市分行)</span>
			</td>
		</tr>
		<tr>
			<td class="left">付款姓名：</td>
			<td class="right">
				<input type="text" name="remittanceConfirm.paierName" value="${remittanceConfirm.paierName}" />
				<font class="red">*</font>&nbsp;
				<span class="error">#{error 'remittanceConfirm.paierName' /}</span>
			</td>
		</tr>
		<tr>
			<td class="left">联系电话：</td>
			<td class="right">
				<input type="text" name="remittanceConfirm.phone" value="${remittanceConfirm.phone}" />
				<span class="error">#{error 'remittanceConfirm.phone' /}</span>
				<span class="tips2">(建议留下您的联系电话，方便联络)</span>
			</td>
		</tr>
		<tr>
			<td class="left">电子邮箱：</td>
			<td class="right">
				<input type="text" name="remittanceConfirm.email" value="${remittanceConfirm.email}" />
				<span class="error">#{error 'remittanceConfirm.email' /}</span>
			</td>
		</tr>
		<tr>
			<td class="left">联系地址：</td>
			<td class="right">
				<input type="text" name="remittanceConfirm.address" value="${remittanceConfirm.address}" />
				<span class="error">#{error 'remittanceConfirm.address' /}</span>
			</td>
		</tr>
		<tr>
			<td class="left">附言内容：</td>
			<td class="right">
				<textarea name="remittanceConfirm.remark" cols="30" rows="5" value="${remittanceConfirm.remark}"></textarea>
			</td>
		</tr>
		#{/form}
		<tr>
			<td class="left">
				
			</td>
			<td class="right">
				<input class="button1" type="button" value="发送确认" onclick="postData()">
				<a href="@{orders.remittanceConfirm(remittanceConfirm.order.id)}"><input class="button1" type="button" value="重置数据"></a>
			</td>
		</tr>
	</table>
</div>